
#include "gendokument.h"

#include <QtGui>
#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    
    
        a.setOrganizationName("CrossKern");
        a.setOrganizationDomain("crosskern.com");
        a.setApplicationName("Gestione imm");
    
    
    //////////1.5817
    QSettings settings; 
    settings.setValue("valuta/dayCHF",0.63185); 
    
    
    
    DB_Manager *line = new DB_Manager();
	  if (!line->Connect("mysql://ppk:popopi89@192.168.1.30:3306/valle_oggetti",30)) {
	  QMessageBox::warning(0, "Error SQL conn.!","Unable to connect on db host!");
	  } else {
    GenDokument *w = new GenDokument(line,20649,"de",0);
        
        //////return 0;
    }
    /////return 0;
    
    a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
    return a.exec();
}
